package com.wish.nettyprotocol.struct;

/**
 * @author tantexian
 * @since 2016/7/17
 */
public final class NettyMessage {
    private Header header; // 消息头
    // body编解码使用jboss marshaller
    private Object body; // 消息体

    public Header getHeader() {
        return header;
    }

    public void setHeader(Header header) {
        this.header = header;
    }

    public Object getBody() {
        return body;
    }

    public void setBody(Object body) {
        this.body = body;
    }

    @Override
    public String toString() {
        return "NettyMessage{" +
                "header=" + header +
                ", body=" + body +
                '}';
    }
}
